<template>
	<div class="gallery-content">
		<swiper :options="swiperOption">
			<swiper-slide 
				v-for='(item, index) of GalleryImgList' 
				:key='index'
			>
				<img 
					class="gallery-c-img" 
					:src="item.img_url" 
				/>
			</swiper-slide>
			<div class="swiper-pagination" slot="pagination"></div>
		</swiper>
	</div>
</template>

<script>
	export default {
		name: 'picture-content',
		props: {
			GalleryImgList: Array
		},
		data () {
			return {
				swiperOption: {
					loop: true,
					autoplay: false,
					initialSlide: 0,
					pagination: '.swiper-pagination',
					paginationType: 'fraction',
					observeParents: true,
					observer: true
				}
			}
		}
	}
</script>

<style lang="stylus" scoped>
	.gallery-content >>> .swiper-container
		overflow:inherit
	.gallery-content
		height:auto
		.gallery-c-img
			width:100%
		.swiper-pagination
			color:#fff
			bottom:-80px
</style>
